import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import stub.Product;


public class ProductImpl extends UnicastRemoteObject implements Product{
	
	private String	name, type;
	private double	price;
	
	
	public ProductImpl( String name, String type, double price ) throws RemoteException {
		this.name = name;
		this.type = type;
		this.price = price;
	}
	
	
	@Override
	public String getName() throws RemoteException {
		return name;
	}
	
	
	@Override
	public double getPrice() throws RemoteException {
		return price;
	}
	
	
	@Override
	public String getType() throws RemoteException {
		return type;
	}
	
}
